<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>goods</title>
</head>
<body>
<a th:href="@{/goods/goodsInsertOutput}">添加商品</a>
<table>
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>评价</td>
        <td>时间</td>
        <td>选项</td>
    </tr>
    <tr th:each="g:${list}">
        <td th:text="${g.id}"></td>
        <td th:text="${g.name}"></td>
        <td th:text="${g.remark}"></td>
        <td th:text="${#dates.format(g.createdTime,'yyyy/MM/dd HH:mm')}">暂无</td>
        <td><a href="#" th:href="@{/goods/deleteById/{id}(id=${g.id})}">删除</a></td>
        <td><a href="#" th:href="@{/goods/goodsSelectOne/{id}(id=${g.id})}">修改</a></td>
    </tr>

</table>
</body>
</html>